package com.yunhe.sms.service.system;

import com.yunhe.commons.dto.Pageable;
import com.yunhe.sms.entity.system.User;
import com.yunhe.webmvc.annotation.RequestBean;

import java.util.List;

/**
 * Created by Administrator on 2017/10/17 0017.
 */
public interface UserService {
    void save(User user);
    void delete(Long id);
    void delBatch(String ids);
    void update(User user);
    void updatePwd(String password, Long id);
    /**
     * 根据用户名和密码查询用户
     * @param userName
     * @param password
     * @return
     */
    User findOne(String userName, String password);

    User findUser(String userName);
    Boolean findOne(String userName);
    User findOne(Long id);
    List<User> findList();
    Pageable<User> findPage(Integer offset, Integer limit);

    String sendEmail(@RequestBean User user);
}
